<?php
namespace app\index\controller;

use think\Controller;

class Index extends Base
{

    public function index(){
        //return [1,2];
        // 商品分类 数据-美食 推荐的数据
        $datas = model('Deal')->getNormalDealByCategoryCityId(17, $this->city->id);
        $datas1 = model('Deal')->getNormalDealByCategoryCityId(1, $this->city->id);
        // 获取4个子分类
        $shenghuocates = model('Category')->getNormalRecommendCategoryByParentId(17, 4);
        $meishicates = model('Category')->getNormalRecommendCategoryByParentId(1, 4);
        return $this->fetch('',[
            'datas' => $datas,
            'datas1'=> $datas1,
            'shenghuocates' => $shenghuocates,
            'meishicates' => $meishicates,
            'controller' => 'ms',
        ]);
    }

}
